<extend name="Public:base" />
<block name="left">
    <ul class=" ">
        <li><a href="{:U('Person/auth')}"><i><img src="__IMG__/logo/rz.png"  width="32" alt=""></i>&nbsp 实名认证</a></li>
        <li><a href="{:U('Person/set_pwdtrade')}">   交易密码设置</a></li>
        <li><a href="{:U('Person/updatepwd')}">      修改登录密码</a></li>
        <li><a href="{:U('Person/change_pwdtrade')}">修改交易密码</a></li>
        <li><a href="{:U('Person/forgot_pwdtrade')}">找回交易密码</a></li>
     
        <li><a href="{:U('Person/mail_check')}">邮箱验证</a></li>
      <!--   <li><a href="">邮件通知</a></li>
         <li><a href="">设置双重验证</a></li>
        <li><a href="">手机绑定</a></li>
      -->
    </ul>
</block>

<block name="right">
    <br>
    <br>
    <br>
    <div class="ziliao">
    <if condition="$userinfos['verify_status'] eq '0'">
        <form action="{:U('Person/auth_act')}" enctype="multipart/form-data" method="POST" onsubmit="return check_form()">
            <div class="col-xs-10">
                <label class="label-name" for="nick">身份证号:</label>
                <input type="text"  class="ziliaobucz" name="idcard_number" id="idcard_number">
            </div>
            <br>
            <div class="col-xs-10">
                <label class="label-name" for="nick">手持身份证(正面)</label>
                <input type="file" name="idcard_front" id="idcard_front">
            </div>
                        <br>

            <div class="col-xs-10">
                <label class="label-name" for="nick">手持身份证(反面)</label>
                <input type="file" name="idcard_back" id="idcard_back">
            </div>
                        <br>

            <div>
                <button class="ziliaobu">保存</button>
            </div>

             </div>
            <script type="text/javascript">
                function check_form() {
                    var idcard_front = document.getElementById('idcard_front');
                    var idcard_back = document.getElementById('idcard_back');
                    var idcard_number = document.getElementById('idcard_number');
                    var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
                    var err_msg = '';

                    if (idcard_number.value == '') {
                        err_msg += '请填写身份证号码\n';
                    }
                    if (!reg.test(idcard_number.value)) {
                        err_msg += '身份证号码无效\n';
                    }
                    if (idcard_front.value == '') {
                        err_msg += '请上传手持身份证(正面)\n';
                    }
                    if (idcard_back.value == '') {
                        err_msg += '请上传手持身份证(反面)\n';
                    }
                    if (err_msg != '') {
                        alert(err_msg);
                        return false;
                    }
                    return true;
                }
            </script>
        </form>
    </if>
    <if condition="$userinfos['verify_status'] eq '1'">
        <h4>您的资料已成功递交系统审核，请耐心等待。</h1>
        <h5>

为了适应反洗钱工作形势，配合监管部门做好用户身份认证资料留存工作，当您的账户出现风险时，在必要时系统会要求您进行更高级别的认证，我们承诺保障您账户的资金安全，且不会泄露您的个人隐私，请您积极配合。</h5>
    </if>
    <if condition="$userinfos['verify_status'] eq '2'">
        <h1>恭喜你，您的身份信息已验证。</h1>
    </if>
    </div>
   
    <div></div>
</block>